package com.spring.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_user_role")
public class SysUserRole {
    @TableId(type = IdType.AUTO)
    private int id;
    private int userId;
    private int roleId;

    public SysUserRole(int userId, int roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}
